package com.itheima.domain;
//凡是用于封装的类我们都会创建一个包（domain），然后在包里面创建对应的类进行使用
public class Student {
    //先定义一个类，进行封装
    //1.定义学生类准备封装数据
    private String name;
    private int age;

    public Student() {

    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
